-- GENERATED SPELL FOR [Argent Crusader] --


function spell0_28029(pUnit, Event) --@Crusader Strike,n/a--
pUnit:FullCastSpellOnTarget(14517,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28029', 30333, 1)
end

function spell1_28029(pUnit, Event) --@Deploy Parachute,Self--
pUnit:FullCastSpellOnTarget(53039,pUnit)
pUnit:RegisterEvent('Sorts_28029', 3298, 1)
end

function spell2_28029(pUnit, Event) --@Turn Evil,n/a--
pUnit:FullCastSpellOnTarget(10326,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28029', 21500, 1)
end

function Sorts_28029(pUnit, Event)
local choix_sorts_28029 = math.random(0, 2)
if choix_sorts_28029 == 0 then
pUnit:RegisterEvent('spell0_28029', 1, 1)
end
if choix_sorts_28029 == 1 then
pUnit:RegisterEvent('spell1_28029', 1, 1)
end
if choix_sorts_28029 == 2 then
pUnit:RegisterEvent('spell2_28029', 1, 1)
end
end

function mob28029_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28029', math.random(1500, 3000), 1)
end

function mob28029_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28029_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28029_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28029, 1, 'mob28029_Action')
RegisterUnitEvent(28029, 2, 'mob28029_Leave')
RegisterUnitEvent(28029, 3, 'mob28029_Kill')
RegisterUnitEvent(28029, 4, 'mob28029_Die')
